package com.zpxt.zpxt.entity;

import javax.persistence.*;
import java.util.Date;

/**
 * @Author:hjx
 * @Description:职位申请实体类
 * @Date: Created in 18:40 2018/3/24
 * @Modified By:
 */
@Entity
@org.hibernate.annotations.Table(appliesTo = "application",comment="职位申请")
public class Application {
    /* 待审核*/
    public static final Integer ToBeAudited = 1;
    /* 审核通过*/
    public static final Integer ReviewAndPassThrough = 2;
    /* 已拒绝*/
    public static final Integer HaveRefused = 3;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private  Long id;//标识主键
    @Column(nullable = false,columnDefinition="BIGINT COMMENT '所属职位（参考position的id）'")
    private  Long positionId;
    @Column(nullable = false,columnDefinition="BIGINT COMMENT '所属求职者投递的简历(参考resume的id)'")
    private  Long resumeId;
    @Column(nullable = false,columnDefinition="INT COMMENT '申请状态（1=待审核；2=审核通过；3=已拒绝）'")
    private  Integer status;
    @Column(nullable = false,columnDefinition="DATETIME COMMENT '求职者的申请时间'")
    private Date appTime;
    @Column(columnDefinition="DATETIME COMMENT '企业的处理时间'")
    private  Date handleTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getPositionId() {
        return positionId;
    }

    public void setPositionId(Long positionId) {
        this.positionId = positionId;
    }

    public Long getResumeId() {
        return resumeId;
    }

    public void setResumeId(Long resumeId) {
        this.resumeId = resumeId;
    }

    public Date getAppTime() {
        return appTime;
    }

    public void setAppTime(Date appTime) {
        this.appTime = appTime;
    }

    public Date getHandleTime() {
        return handleTime;
    }

    public void setHandleTime(Date handleTime) {
        this.handleTime = handleTime;
    }
}
